import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Index',
    component: () => import('../views')
  },
  {
    path: '/doc',
    meta: {
      title: '白羊',
      // internals: [ // 排除显示
      //   'system',
      // ]
      // path: '@/components' // 默认查询组件
    },
    name: 'Doc2',
    component: () => import('../auto-vue-doc/Doc.vue')
  },
  {
    path:'/test',
    name:'Test',
    component: () => import('../views/Test.vue')
  }
]

const router = new VueRouter({
  // mode: 'history',
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
